package com.gaussian.property.module.biz.service.impl;

import com.gaussian.property.module.biz.entity.CrewDailyStatistics;
import com.gaussian.property.module.biz.mapper.CrewDailyStatisticsMapper;
import com.gaussian.property.module.biz.service.ICrewDailyStatisticsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * ics项目人员维度指标每日汇总 服务实现类
 * </p>
 *
 * @author songqi(13776346982)
 * @since 2024-10-03
 */
@Service
public class CrewDailyStatisticsServiceImpl extends ServiceImpl<CrewDailyStatisticsMapper, CrewDailyStatistics> implements ICrewDailyStatisticsService {
    @Override
    public int getMaxLeaveSiteDura(String projectId, String dateStr) {
        Integer count = baseMapper.getMaxLeaveSiteDura(projectId, dateStr);
        return count == null ? 0 : count;
    }

    @Override
    public int getMaxSlowDownCount(String projectId, String dateStr) {
        Integer count =  baseMapper.getMaxSlowDownCount(projectId, dateStr);
        return count == null ? 0 : count;
    }

}
